package com.ldatum.crm.serviceImpl;

import java.util.List;

import com.ldatum.crm.dao.ThdetailDao;
import com.ldatum.crm.daoImpl.ThdetailDaoImpl;
import com.ldatum.crm.domain.Thdetail;
import com.ldatum.crm.service.thdetailService;

public class ThdetailServiceImpl implements thdetailService {
	
	ThdetailDao thdetailDao = new ThdetailDaoImpl();
//	InventoryDao inventoryDao = new InventoryDaoImpl();
	@Override
	public int saveThDetail(List<Thdetail> thList) throws Exception {
//		for(Thdetail jd:thList){
//			inventoryDao.refund(jd);
//		}
		return thdetailDao.saveThDetail(thList);
	}
	@Override
	public List<Thdetail> findByDjh(String djh) throws Exception {
		return thdetailDao.findByDjh(djh);
	}

}
